package xin.yogee.ms.module.oa.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import xin.yogee.ms.module.oa.entity.Product;
import xin.yogee.ms.module.oa.mapper.ProductMapper;
import xin.yogee.ms.module.oa.service.IProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 商品 服务实现类
 * </p>
 *
 * @author jackieQ
 * @since 2020-02-27
 */
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements IProductService {

    @Resource
    private ProductMapper productMapper;

    @Override
    public IPage<Product> getList(Page<Product> productPage) {
        return productMapper.getList(productPage);
    }
}
